package com.fast.develop.meta.resource;

import com.fast.develop.meta.base.BaseMeta;
import com.fast.develop.meta.base.Meta;
import com.fasterxml.jackson.annotation.JsonCreator;

import java.util.List;
import java.util.Map;

/**
 * @author 莫寅
 * @createTime 2022-06-14 19:09
 * @desc：
 */
public class MetaResource extends BaseMeta {


    private String id;
    private Type type;
    private String title;
    private Boolean isSystem;
    private List funcs;
    private Map contentPanel;
    private Map propertiesPanel;

    public enum Type{
        folder, file, metadata;


        @JsonCreator
        public static Type create(String name) {
            return Type.valueOf(name);
        }

    }


    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    public Boolean getSystem() {
        return isSystem;
    }

    public void setSystem(Boolean system) {
        isSystem = system;
    }

    public List getFuncs() {
        return funcs;
    }

    public void setFuncs(List funcs) {
        this.funcs = funcs;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Map getContentPanel() {
        return contentPanel;
    }

    public void setContentPanel(Map contentPanel) {
        this.contentPanel = contentPanel;
    }

    public Map getPropertiesPanel() {
        return propertiesPanel;
    }

    public void setPropertiesPanel(Map propertiesPanel) {
        this.propertiesPanel = propertiesPanel;
    }
}
